package com.example.myapplication

import android.content.Context
import com.example.myapplication.bean.User
import com.ftw.commons.IBasePresenter
import com.ftw.commons.IBaseView

class LoginContract {

    interface View : IBaseView<Presenter> {
        /**
         *
         * @author  fangtianwen
         * @time  2020/08/24
         * @param 登录账号信息
         * @return void
         **/

        fun loginComplete(user: User)
    }

    interface Presenter : IBasePresenter {
        /**
         *
         * @author fangtianwen
         * @time   2020/08/24
         * @param  account github 账号，pwdgithub密码
         * @return void
         **/

        fun login(context: Context, account: String, pwd: String)
    }

}